#include<stdio.h>
#include<string.h>
char a[300];
char * str_delete(char *s, int v, int w){
    int len=strlen(s);
    if(v-1+w>=len){
        s[v-1]='\0';
    }
    else memmove(s+v-1,s+v-1+w,len-v+2-w);
    return s;
}
int main(){
    int n,m;
    scanf("%d %d",&n,&m);
    getchar();
    fgets(a,sizeof(a),stdin);
     a[strcspn(a,"\n")]='\0';
      str_delete(a,n,m);
      printf("%s\n",a);
}